import request from '@/utils/request'

// 物业费列表
export function getPropetyList(params) {
  return request({
    url: '/park/propertyfee',
    params
  })
}

// 查询所有企业
export function getParkList(data) {
  return request({
    url: '/park/all/enterprise',
    data
  })
}
// 查询所有楼宇
export function getBuildingList(data) {
  return request({
    url: '/park/all/building',
    data
  })
}

// 添加账单
export function addpropertyAPI(data) {
  return request({
    url: '/park/propertyfee',
    method: 'post',
    data
  })
}

// 删除账单
export function deletePropertyAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'delete'
  })
}

// 查看账单详情

export function lookAPI(id) {
  return request({
    url: `/park/propertyfee/${id}`
  })
}
